package com.yesido.spring.ioc;

/**
 * @author yesido
 * @description
 * @date 2023-06-20 13:45
 * @Version 8.3
 *
 * spring ioc的实现原理就是工厂模式+反射机制
 */
public class Client {
    public static void main(String[] args) {
        Fruit instance = Factory.getInstance("com.yesido.spring.ioc.Apple");
        if (instance!=null){
            instance.eat();
        }
    }
}
